package com.llap.exp190929.repository;

import com.llap.exp190929.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Integer> {
    Page<User> findAllByUsernameLike(String username, Pageable pageable);
    User findByUsername(String username);
}
